package com.bs.elasticsearch.vo;

import lombok.Data;
import org.elasticsearch.common.geo.GeoPoint;
import org.elasticsearch.geometry.Geometry;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.GeoPointField;

import java.io.Serializable;
import java.util.List;

/**
 * @author bingshao
 * @date 2023/5/9
 **/
@Data
@Document(indexName = "area_city", createIndex = false)
public class GeoLocationVo implements Serializable {
    private static final long serialVersionUID = 1506257441350296336L;

    private String id;

    private String areaId;

    private String pid;

    private String deep;

    private String name;

    private String ext_path;

    @GeoPointField
    private GeoPoint geo_wkt;

    private List<Object> coordinates;
}
